import { useI18n } from 'vue-i18n';
import image1 from '@/settings/assets/images/1.png';
import image2 from '@/settings/assets/images/2.png';
import image3 from '@/settings/assets/images/3.png';

export const OPERATE_STATUS_ON = 1;
export const OPERATE_STATUS_OFF = 2;

export const STATUS_PUBLISHED = 1;
export const STATUS_UNREADY = 2;
export const STATUS_FAILURE = 3;
export const STATUS_LONGTERM = 4

export function useStatusList() {
  const { t } = useI18n();

  return {
    [STATUS_PUBLISHED]: t('settings.view.operation.index.status.1'),
    [STATUS_UNREADY]: t('settings.view.operation.index.status.2'),
    [STATUS_FAILURE]: t('settings.view.operation.index.status.3'),
    [STATUS_LONGTERM]: t('settings.view.operation.index.status.5'),
  }
}

export const images: Record<number, string> = {
  1: image1,
  2: image2,
  3: image3,
};
